export enum institutionTypeEnum {
    platform = 0, // 平台
    country = 1, // 国家
    province = 2, // 省
    city = 3, // 市
    district = 4, // 区县
    school = 5, // 校
    publisher = 6, // 出版社
    textbook = 7, // 教材所
}

// 机构类型映射表
export const institutionTypeList = [
    {
        id: 1,
        name: '教育行政部门',
    },
    {
        id: 2,
        name: '学校',
    },
    {
        id: 3,
        name: '教材所',
    },
    {
        id: 4,
        name: '出版社',
    },
];
// 审核状态颜色 + value值
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const auditStatusColorList: { [propName: number]: any } = {
    1: {
        text: '待审核',
        color: '#FAAD14',
    },
    2: {
        text: '审核中',
        color: '#1890ff',
    },
    3: {
        text: '已通过',
        color: '#52c41a',
    },
    4: {
        text: '已驳回',
        color: '#f5222d',
    },
};
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const auditStatus = [
    //  -1无需审核 1待审核 2审核中 3已通过 4已驳回
    {
        name: '待审核',
        value: 1,
    },
    {
        name: '审核中',
        value: 2,
    },
    {
        name: '已通过',
        value: 3,
    },
    {
        name: '已驳回',
        value: 4,
    },
];
export const auditStatusMap = {
    //  -1无需审核 1待审核 2审核中 3已通过 4已驳回
    1: '待审核',
    2: '审核中',
    3: '已通过',
    4: '已驳回',
};
//级别反馈审核列表tab
export const auditTabList = [
    {
        label: '待审核',
        value: 1,
    },
    {
        label: '已审核',
        value: 2,
    },
];
export const levelTabList = [
    {
        name: '全部',
        value: '',
    },
    {
        name: '省级',
        value: 2,
    },
    {
        name: '地市级',
        value: 3,
    },
    {
        name: '区县级',
        value: 4,
    },
    {
        name: '校级',
        value: 5,
    },
];

// 响应状态(详情页 + 列表页)
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const respStatusList: { [propName: number]: any } = {
    0: {
        text: '无需响应',
        color: '#d9d9d9',
    },
    1: {
        text: '待响应',
        color: '#faad14',
    },
    2: {
        text: '响应中',
        color: '#1890ff',
    },
    3: {
        text: '已响应',
        color: '#52c41a',
    },
};
export const resList = [
    // -1无需响应 1待响应 2响应中 3已响应
    // {
    //     name: '无需响应',
    //     value: -1,
    // },
    {
        name: '待响应',
        value: 1,
    },
    {
        name: '响应中',
        value: 2,
    },
    {
        name: '已响应',
        value: 3,
    },
];
// 教材审核表头
export const examineColumn = [
    {
        title: '序号',
        dataIndex: 'num',
        width: 70,
    },
    {
        title: '反馈单位',
        dataIndex: 'creatorOrgName',
        width: 190,
        ellipsis: { showTitle: true },
    },
    {
        title: '教材名称',
        dataIndex: 'bookName',
        width: 220,
        ellipsis: { showTitle: true },
    },
    {
        title: '出版单位',
        dataIndex: 'issueOrgName',
        width: 150,
        ellipsis: { showTitle: true },
    },
    {
        title: '反馈时间',
        dataIndex: 'submitTime',
        width: 170,
    },
    {
        title: '审核状态',
        dataIndex: 'auditStatus',
        width: 100,
    },
    {
        title: '操作',
        dataIndex: 'operation',
        width: 220,
    },
];
// 课标待审核审核表头
export const courseNoExamineColumn = [
    {
        title: '序号',
        dataIndex: 'num',
        width: 90,
    },
    {
        title: '文本类型',
        dataIndex: 'textType',
        width: 150,
        ellipsis: { showTitle: true },
    },
    {
        title: '学段',
        dataIndex: 'stageName',
        // width: 90,
        // ellipsis: { showTitle: true },
    },
    {
        title: '学科',
        dataIndex: 'subjectName',
        width: 140,
        ellipsis: { showTitle: true },
    },
    {
        title: '审核状态',
        dataIndex: 'auditStatus',
    },
    {
        title: '反馈时间',
        dataIndex: 'submitTime',
    },
    {
        title: '操作',
        dataIndex: 'operation',
        width: 220,
        ellipsis: { showTitle: true },
    },
];
// 课标已审核审核表头
export const courseExamineColumn = [
    {
        title: '序号',
        dataIndex: 'num',
        width: 70,
    },
    {
        title: '文本类型',
        dataIndex: 'textType',
        width: 160,
    },
    {
        title: '学段',
        dataIndex: 'stageName',
        // width: 90,
        // ellipsis: { showTitle: true },
    },
    {
        title: '学科',
        dataIndex: 'subjectName',
        width: 100,
        ellipsis: { showTitle: true },
    },
    {
        title: '审核状态',
        dataIndex: 'auditStatus',
        width: 120,
    },
    {
        title: '反馈时间',
        dataIndex: 'submitTime',
        width: 220,
    },
    {
        title: '审核时间',
        dataIndex: 'auditPassTime',
        width: 220,
    },
    {
        title: '操作',
        dataIndex: 'operation',
    },
];
// 教材监管表头
export const feedBackColumn = [
    {
        title: '序号',
        dataIndex: 'num',
        width: 70,
    },
    {
        title: '反馈级别',
        dataIndex: 'creatorLevel',
        width: 100,
        ellipsis: { showTitle: true },
    },
    {
        title: '反馈单位',
        dataIndex: 'creatorOrgName',
        width: 200,
        ellipsis: { showTitle: true },
    },
    {
        title: '教材名称',
        dataIndex: 'bookName',
        width: 200,
        ellipsis: { showTitle: true },
    },
    {
        title: '出版单位',
        dataIndex: 'issueOrgName',
        width: 200,
        ellipsis: { showTitle: true },
    },
    {
        title: '反馈时间',
        dataIndex: 'submitTime',
        width: 180,
        ellipsis: { showTitle: true },
    },
    {
        title: '响应状态',
        dataIndex: 'respStatus',
    },
    {
        title: '操作',
        dataIndex: 'operation',
    },
];

// 课程监管表头
export const courseFeedBackColumn = [
    {
        title: '序号',
        dataIndex: 'num',
        width: 90,
        ellipsis: { showTitle: true },
    },
    {
        title: '反馈级别',
        dataIndex: 'creatorLevel',
        width: 100,
        ellipsis: { showTitle: true },
    },
    {
        title: '文本类型',
        dataIndex: 'textType',
        width: 130,
        ellipsis: { showTitle: true },
    },
    {
        title: '反馈单位',
        dataIndex: 'creatorOrgName',
        width: 220,
        ellipsis: { showTitle: true },
    },

    {
        title: '学段',
        dataIndex: 'stageName',
        width: 100,
        ellipsis: { showTitle: true },
    },
    {
        title: '学科',
        dataIndex: 'subjectName',
        width: 100,
        ellipsis: { showTitle: true },
    },
    {
        title: '反馈时间',
        dataIndex: 'submitTime',
        width: 160,
    },
    {
        title: '响应状态',
        dataIndex: 'respStatus',
        width: 120,
        ellipsis: { showTitle: true },
    },
    {
        title: '操作',
        dataIndex: 'operation',
    },
];

// 教材填报表头
export const fillingColumn = [
    {
        title: '序号',
        dataIndex: 'num',
        width: 70,
    },
    {
        title: '教材名称',
        dataIndex: 'bookName',
        ellipsis: { showTitle: true },
    },
    {
        title: '学段',
        dataIndex: 'stageName',
        width: 90,
        ellipsis: { showTitle: true },
    },
    {
        title: '学科',
        dataIndex: 'subjectName',
        width: 100,
        ellipsis: { showTitle: true },
    },
    {
        title: '出版单位',
        dataIndex: 'issueOrgName',
        ellipsis: { showTitle: true },
    },
    {
        title: '审核状态',
        dataIndex: 'auditStatus',
        width: 100,
    },
    {
        title: '出版社响应',
        dataIndex: 'respStatus',
        width: 110,
    },
    {
        title: '反馈时间',
        dataIndex: 'submitTime',
        width: 170,
    },
    {
        title: '操作',
        dataIndex: 'operation',
        width: 180,
    },
];
// 课标填报表头
export const coursefillingColumn = [
    {
        title: '序号',
        dataIndex: 'num',
        width: 70,
    },
    {
        title: '学段',
        dataIndex: 'stageName',
        width: 120,
        ellipsis: { showTitle: true },
    },
    {
        title: '学科',
        dataIndex: 'subjectName',
        width: 120,
        ellipsis: { showTitle: true },
    },
    {
        title: '文本类型',
        dataIndex: 'textType',
        width: 150,
    },
    {
        title: '审核状态',
        dataIndex: 'auditStatus',
    },
    {
        title: '教材所响应状态',
        dataIndex: 'respStatus',
    },
    {
        title: '反馈时间',
        dataIndex: 'submitTime',
        width: 170,
    },
    {
        title: '操作',
        dataIndex: 'operation',
        width: 180,
    },
];
// 反馈级别列表
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const creatorLevelList: { [propName: number]: any } = {
    1: '国家级',
    2: '省级',
    3: '市级',
    4: '区级',
    5: '校级',
};

//新建反馈问题类型
export const feedbackQuestionType = [
    {
        name: '内容（含插图）方向性，导向性问题',
        value: 11,
    },
    {
        name: '内容（含插图）科学性问题',
        value: 12,
    },
    {
        name: '内容（含插图）适宜度问题',
        value: 13,
    },
    {
        name: '内容改进建议',
        value: 14,
    },
    {
        name: '其他',
        value: 15,
    },
    // {
    //     name: '课程标准意见反馈',
    //     value: 21,
    // },
];
type FeedbackQuestionTypeMap = {
    [key: number]: string;
};
export const feedbackQuestionTypeMap: FeedbackQuestionTypeMap = {
    11: '内容（含插图）方向性，导向性问题',
    12: '内容（含插图）科学性问题',
    13: '内容（含插图）适宜度问题',
    14: '内容改进建议',
    15: '其他',
};
export const courseQuestionTypeMap: FeedbackQuestionTypeMap = {
    21: '政治性',
    22: '思想性',
    23: '科学性',
    24: '时代性',
    25: '规范性',
    30: '适宜性',
    26: '协同性',
    27: '改进建议',
    28: '使用疑惑',
    29: '其他',
};
export const courseQuestionType = [
    { name: '政治性', value: 21 },
    { name: '思想性', value: 22 },
    { name: '科学性', value: 23 },
    { name: '时代性', value: 24 },
    { name: '规范性', value: 25 },
    { name: '适宜性', value: 30 },
    { name: '协同性', value: 26 },
    { name: '改进建议', value: 27 },
    { name: '使用疑惑', value: 28 },
    { name: '其他', value: 29 },
];

//出版社待处理表头
export const publisherColumn0 = [
    {
        title: '序号',
        dataIndex: 'num',
        width: 70,
    },
    {
        title: '反馈级别',
        dataIndex: 'creatorLevel',
        width: 100,
    },
    {
        title: '反馈单位',
        dataIndex: 'creatorOrgName',
        width: 170,
        ellipsis: { showTitle: true },
    },
    {
        title: '学段',
        dataIndex: 'stageName',
        width: 90,
        ellipsis: { showTitle: true },
    },
    {
        title: '学科',
        dataIndex: 'subjectName',
        width: 120,
        ellipsis: { showTitle: true },
    },
    {
        title: '教材名称',
        dataIndex: 'bookName',
        width: 170,
        ellipsis: { showTitle: true },
    },
    {
        title: '反馈时间',
        dataIndex: 'submitTime',
        width: 170,
    },
    {
        title: '响应状态',
        dataIndex: 'respStatus',
        width: 100,
    },
    {
        title: '操作',
        dataIndex: 'operation',
        width: 150,
    },
];
//出版社已处理表头
export const publisherColumn1 = [
    {
        title: '序号',
        dataIndex: 'num',
        width: 70,
    },
    {
        title: '反馈级别',
        dataIndex: 'creatorLevel',
    },
    {
        title: '反馈单位',
        dataIndex: 'creatorOrgName',
        width: 170,
        ellipsis: { showTitle: true },
    },
    {
        title: '学段',
        dataIndex: 'stageName',
        width: 90,
        ellipsis: { showTitle: true },
    },
    {
        title: '学科',
        dataIndex: 'subjectName',
        width: 120,
        ellipsis: { showTitle: true },
    },
    {
        title: '教材名称',
        dataIndex: 'bookName',
        width: 170,
        ellipsis: { showTitle: true },
    },
    {
        title: '反馈时间',
        dataIndex: 'submitTime',
        width: 170,
        ellipsis: { showTitle: true },
    },
    {
        title: '响应时间',
        dataIndex: 'respTime',
        width: 170,
        ellipsis: { showTitle: true },
    },
    {
        title: '操作',
        dataIndex: 'operation',
    },
];

//教材所待处理表头
export const insColumn0 = [
    {
        title: '序号',
        dataIndex: 'num',
        width: 90,
    },
    {
        title: '反馈级别',
        dataIndex: 'creatorLevel',
        width: 100,
    },
    {
        title: '反馈单位',
        dataIndex: 'creatorOrgName',
        width: 200,
        ellipsis: { showTitle: true },
    },
    {
        title: '学段',
        dataIndex: 'stageName',
        width: 90,
        ellipsis: { showTitle: true },
    },
    {
        title: '学科',
        dataIndex: 'subjectName',
        width: 120,
        ellipsis: { showTitle: true },
    },
    {
        title: '文本类型',
        dataIndex: 'textType',
        width: 130,
        ellipsis: { showTitle: true },
    },
    {
        title: '反馈时间',
        dataIndex: 'submitTime',
        width: 170,
        ellipsis: { showTitle: true },
    },
    {
        title: '响应状态',
        dataIndex: 'respStatus',
        width: 120,
        ellipsis: { showTitle: true },
    },
    {
        title: '操作',
        dataIndex: 'operation',
    },
];
//教材所已处理表头
export const insColumn1 = [
    {
        title: '序号',
        dataIndex: 'num',
        width: 70,
    },
    {
        title: '反馈级别',
        dataIndex: 'creatorLevel',
        width: 120,
    },
    {
        title: '反馈单位',
        dataIndex: 'creatorOrgName',
        width: 200,
        ellipsis: { showTitle: true },
    },
    {
        title: '学段',
        dataIndex: 'stageName',
        width: 90,
        ellipsis: { showTitle: true },
    },
    {
        title: '学科',
        dataIndex: 'subjectName',
        width: 100,
        ellipsis: { showTitle: true },
    },
    {
        title: '文本类型',
        dataIndex: 'textType',
        width: 130,
        ellipsis: { showTitle: true },
    },
    {
        title: '反馈时间',
        dataIndex: 'submitTime',
        width: 170,
    },
    {
        title: '响应时间',
        dataIndex: 'respTime',
        width: 170,
    },
    {
        title: '操作',
        dataIndex: 'operation',
    },
];

export const textTypeList = [
    {
        name: '课程方案',
        value: 1,
    },
    {
        name: '学科课程标准',
        value: 2,
    },
];
export const educationalStageDicMap: { [key: string]: string } = {
    4: '义务教育',
    5: '普通高中',
};
export const dateTypeList = [
    {
        label: '按月',
        value: 2,
    },
    {
        label: '按日',
        value: 3,
    },
];
export const pointToList = [
    {
        label: '按出版社',
        value: 1,
    },
    {
        label: '按书名',
        value: 2,
    },
];
export const TextTypeList = [
    {
        label: '全部',
        value: undefined,
    },
    {
        label: '课程方案',
        value: 1,
    },
    {
        label: '学科课程标准',
        value: 2,
    },
];

/** 教育阶段：义教｜高中 start */
export const educationTypeList = [
    { code: 'yijiao', name: '义教' },
    { code: 'gaozhong', name: '高中' },
];
export enum eudcationTypeEnum {
    compulsory = 'yijiao', // 义教
    highSchool = 'gaozhong', // 高中
}
/** 教育阶段 end */

/** 学年｜学期 start */
export const schoolYearList = [{ code: null, name: '2023-2024学年' }];
export const termList = [
    { code: 1, name: '2023-2024学年/上学期' },
    { code: 2, name: '2023-2024学年/下学期' },
];
/** 学年｜学期 end */
